package com.example.musicapp.contract;

import com.example.musicapp.base.IBasePresenter;
import com.example.musicapp.base.IBaseView;
import com.example.musicapp.network.HttpResponseListener;

public interface ILoginContract {

    /*** view 层接口 */
    interface ILoginUi extends IBaseView {
        /*** 登录成功
         * @param username*/
        void loginSuccess(String username);

        /**
         * 登录失败
         */
        void loginFailure();
    }

    /*** presenter 层接口 */
    interface LoginPre extends IBasePresenter {
        int login(String username, String password);
    }

    /*** model 层接口 */
    interface LoginModel {
        void login(String username, String password, HttpResponseListener callBack);
    }
}
